<!-- 代理商流水（临时测试用） -->
<template>
  <div class="app-container">
    <el-table :data="tableData">
      <el-table-column property="agentTenantName" label="代理商租户名称"></el-table-column>
      <el-table-column property="businessName" label="商家名称（加盟商）"></el-table-column>
      <el-table-column property="agentMoney" label="商家支付给代理商的金额"></el-table-column>
      <el-table-column property="generationTime" label="生成时间"></el-table-column>
      <el-table-column property="confirmTime" label="分账确认时间"></el-table-column>
      <el-table-column property="deductionStatusStr" label="划分状态"></el-table-column>
    </el-table>
    <pagination :total="listTotal" v-model:page="queryData.current" v-model:limit="queryData.size" @pagination="getTable" />
  </div>
</template>
<script setup>
import { getPage } from "@/api/agencyModel/agentFlow";
import { onMounted } from "vue";
const tableData = ref([]);
const listTotal = ref(0);
const queryData = ref({
  current: 1,
  size: 10
});
const getTable = () => {
  getPage(queryData.value).then(res => {
    tableData.value = res.data.records;
    console.log(tableData.value)
    listTotal.value = res.data.total;
  });
};

onMounted(() => {
  getTable();
});
</script>
<style scoped lang="scss"></style>
